/**
 * Copyright(c)2012 Beijing PeaceMap Co.,Ltd.
 * All right reserved. 
 */
package com.pmc.dwa.security.service;

import java.util.List;
import java.util.Map;

import com.pmc.dwa.common.utils.PaginationSupport;
import com.pmc.dwa.security.model.TGroup;
import com.pmc.dwa.security.model.TSect;
import com.pmc.dwa.security.model.TSection;

/**
 * @description 单位、资源管理
 * @author aokunsang
 * @date 2013-1-7
 */
public interface ISectionResourceService {

	
	/* 根据角色id获取所有无重复的资源id*/
	public List<Map<String,Object>> findDistinctSectid(String strRoleIdlist);
	/* 查询有效的分组*/
	public List<TSect> findParentSect(String groupid,Integer slevel);
	/* 根据groupid查询用户拥有的权限资源列表*/
	public List<TSect> findSectListByParentidForUser(String groupid,String pid,String strSectIdlist);
	
	/*-----------------------------单位管理--------------------------------------------*/
	public List<TSection> getAllSection();
	public TSection getSectionByid(String secid);
	public void addSection(TSection section);
	public void delSection(String sectionid);
	public void editSectionColumnVal(String secid, String columnName, String columnVal);
	public void editSection(TSection section);
	public PaginationSupport<TSection> getPagesTSection(String queryname,int pageNumber,int pageSize);
	/*-----------------------------资源管理--------------------------------------------------*/
	public PaginationSupport<TSect> getPagesTSect(String queryname,int pageNumber,int pageSize);
	public List<TSect> getAllTsect(String queryname);
	public List<TGroup> getAllGroup();
	public TSect getSect(String sectid);
	public void delSect(String sectid);
	public void addSect(TSect sect);
	public void editSect(TSect sect);
}
